// TODO: 2025/5/27  
package Practice.shuffle;

import java.util.List;

public class Test {
    public static void main(String[] args) {
        CardsDemo cardsDemo = new CardsDemo();
        //1.买52张牌
        System.out.println("====买牌后====");
        List<Cards> cardsList = cardsDemo.buyCards();
        System.out.println(cardsList);
        //2.洗牌
        System.out.println("====洗牌后====");
        cardsDemo.shuffle(cardsList);
        System.out.println(cardsList);

        //3.3个人去拿牌，轮流拿牌，每个人拿5次
        List<List<Cards>> list = cardsDemo.play(cardsList);
        for (int i = 0; i < list.size(); i++) {
            System.out.println("第"+(i+1)+"个人的牌"+list.get(i));
        }
        //4.剩下的牌：
        System.out.println("剩下的牌；" + cardsList);
    }
}
